package com.example.videodemo;


import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import androidx.annotation.Nullable;

public class RcvDemoAdapter extends BaseQuickAdapter<RcvJpg, BaseViewHolder> {

    public RcvDemoAdapter(int layoutResId, @Nullable List<RcvJpg> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RcvJpg item) {
        Bitmap bitmap = BitmapFactory.decodeByteArray(item.getBytes(), 0, item.getBytes().length);
        helper.setText(R.id.tv_chanel,item.getChanelname()).setImageBitmap(R.id.rcv_img,bitmap);
    }


}
